package com.three.iot.channel.api;

import com.github.pagehelper.Page;
import com.three.iot.commons.enums.Result;
import com.three.iot.channel.po.CreateProductReqPo;
import com.three.iot.channel.po.ProductCondPo;
import com.three.iot.channel.po.ProductRespPo;

/**
 * @author luiz
 * @Title: ProductChannelService
 * @ProjectName iot-server
 * @Description: TODO
 * @date 2019-05-07 14:05
 */
public interface ProductChannelService {
    /**
     * 创建产品
     *
     * @param createProductPo
     * @return
     */
    Result<ProductRespPo> createProduct(CreateProductReqPo createProductPo);

    /**
     * 按照条件查询产品列表
     *
     * @param productCondPo
     * @return
     */
    Result<Page<ProductRespPo>> findProductList(ProductCondPo productCondPo);
}
